Factory.define :bucket do |b|
	b.name "My Bucket"
end

Factory.define :setting_usage do |su|
	su.bucket { |x| x.association(:bucket) }
	su.setting { |x| x.association(:settng) }
end

Factory.define :setting do |s|
	s.name "my_setting"
	s.value "default_value"
end

Factory.define :setting_override do |so|
  so.setting { |x| x.association(:setting) }
	so.value "new_value"
end

Factory.define :axis, :class => Axis do |a|
  a.name 'axis_name'
  a.position 1
end

Factory.define :axis_value do |av|
  av.name 'axis_value_name'
  av.axis { |x| x.association(:axis) }
end

Factory.define :axis_value_usage do |avu|
  avu.axis_value { |x| x.association(:axis_value) }
  avu.setting_override { |x| x.association(:setting_override) }
end
